package com.handy.chen.jiyu;

import java.io.IOException;

import com.example.android.BluetoothChat.BluetoothChat;
import com.example.android.BluetoothChat.DeviceListActivity;

import android.app.Activity;
import android.app.WallpaperManager;
import android.bluetooth.BluetoothAdapter;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.util.Log;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;


public class BluetoothConnection  extends BluetoothChat {
		
	
	
	public void set_wallpaper(Bitmap bmp){ 
		WallpaperManager wallpaperManager = WallpaperManager.getInstance(BluetoothConnection.this);  
		Log.d("set","after yes");
		
		try {
			wallpaperManager.setBitmap(bmp);
			Toast.makeText(this, "success", Toast.LENGTH_SHORT).show();
		} catch (IOException e) {

		}
	}
}
